package com.ep.commonbaseadapter.base;

/**
 * Created by Administrator on 2017/7/31.
 */

public interface ItemViewDelegate<T> {
    /**
     * 获取布局id
     * @return
     */
    int getItemViewLayoutId();

    /**
     *
     * @param data
     * @param postiton
     * @return
     */
    boolean isForViewType(T data,int postiton);

    /**
     * 绑定数据
     * @param viewHolder
     * @param data
     * @param position
     */
    void bindData(ViewHolder viewHolder,T data,int position);
}
